package com.victualler.core.config.dict.controller;


import com.victualler.core.base.controller.BaseRestController;
import com.victualler.core.config.dict.entity.DictDao;
import com.victualler.core.config.dict.dto.*;
import com.victualler.core.config.dict.repository.DictQueryRepository;
import com.victualler.core.config.dict.repository.DictRepository;
import com.victualler.core.config.dict.service.DictService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: Guoshichang
 * @Date: Create in 19:12 2018/4/5
 * @Discription:
 */
public interface DictController extends BaseRestController<DictDao,DictRepository,DictQueryRepository,DictService> {

    public List<DictTopDto> getDictTopDto();

    /**
     * @author Guoshichang
     * @since 20:25 on 2018/8/27.
     * @param codeType 字典类型
     * @return List
     * @Function 根据字典类型模糊查询DictTopDto列表
     */
    @RequestMapping("findTopLike")
    public List<DictTopDto> getDictTopDto(@RequestParam String codeType);

    public List<DictDao> getDictByType(String CodeType);
}
